package com.ruoyi.tsjData.domain.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 提升机结果对象 data_tshj_result
 * 
 * @author ruoyi
 * @date 2023-11-22
 */
@Getter
public class DataTshjResultDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 保存的结果ID */
    private Long resultId;

    /** 测试任务ID */
    @Excel(name = "测试任务ID")
    private Long dataTaskId;

    /** 测试平板SN码 */
    @Excel(name = "测试平板SN码")
    private String padSn;

    /** 绑定的企业ID */
    @Excel(name = "绑定的企业ID")
    private Long deptId;

    /** 绑定的个人ID */
    @Excel(name = "绑定的个人ID")
    private Long userId;

    /** 任务类型 */
    @Excel(name = "任务类型")
    private String taskType;

    /** 受检单位 */
    @Excel(name = "受检单位")
    private String shjdw;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String shbbh;

    /** 主检姓名 */
    @Excel(name = "主检姓名")
    private String zhjxm;

    /** 测试人员（采用&分隔） */
    @Excel(name = "测试人员", readConverterExp = "采=用&分隔")
    private String cshry;

    /** 拍摄照片名（采用,分隔） */
    @Excel(name = "拍摄照片名", readConverterExp = "采=用,分隔")
    private String imgNames;

    /** 录制视频名（采用,分隔） */
    @Excel(name = "录制视频名", readConverterExp = "采=用,分隔")
    private String videoNames;

    /** 任务创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "任务创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date taskCreateTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setResultId(Long resultId) 
    {
        this.resultId = resultId;
    }

    public void setDataTaskId(Long dataTaskId)
    {
        this.dataTaskId = dataTaskId;
    }

    public void setPadSn(String padSn)
    {
        this.padSn = padSn;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public void setShjdw(String shjdw)
    {
        this.shjdw = shjdw;
    }

    public void setShbbh(String shbbh)
    {
        this.shbbh = shbbh;
    }

    public void setZhjxm(String zhjxm)
    {
        this.zhjxm = zhjxm;
    }

    public void setCshry(String cshry)
    {
        this.cshry = cshry;
    }

    public void setImgNames(String imgNames)
    {
        this.imgNames = imgNames;
    }

    public void setVideoNames(String videoNames)
    {
        this.videoNames = videoNames;
    }

    public void setTaskCreateTime(Date taskCreateTime)
    {
        this.taskCreateTime = taskCreateTime;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resultId", getResultId())
            .append("dataTaskId", getDataTaskId())
            .append("padSn", getPadSn())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("taskType", getTaskType())
            .append("shjdw", getShjdw())
            .append("shbbh", getShbbh())
            .append("zhjxm", getZhjxm())
            .append("cshry", getCshry())
            .append("imgNames", getImgNames())
            .append("videoNames", getVideoNames())
            .append("taskCreateTime", getTaskCreateTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
